﻿
var fnUserRoleSetting = function () {
    var row = fnGetSelectedRow();
    var pId = row[const_entityID];
    var selectId = "RoleID";
    var conditonId = "UserID='" + pId + "'";
    var formURL = "/EditWidows/YUIMenuList.aspx?pid=" + pId + "&selectid=" + selectId + "&conditonid=" + conditonId + "&masterentity=SysUserRole&masterPara=SysRole|RoleName|RoleID|True";
    _EditDataURL = formURL;
    if ($("#btn_dialog_open").length > 0) {
        $("#btn_dialog_open").click();
        return;
    }
}

//修改密码
var fnModifyPassword = function () {
    var row = fnGetSelectedRow();
    var id = row[const_entityID];
    var formURL = "/EditWidows/SysManager/UserPwdSetting.aspx?id=" + id + ""; // "/EditWidows/YUIMenuList.aspx?pid=" + pId + "&selectid=" + selectId + "&conditonid=" + conditonId + "&masterentity=SysUserRole&masterPara=SysRole|RoleName|RoleID|True";
    _EditDataURL = formURL;
    if ($("#btn_dialog_open").length > 0) {
        $("#btn_dialog_open").click();
        return;
    }
}


//用户信息导入
var fnImportExcel = function () {
    var formURL = "/ExcelImport.aspx";
  _EditDataURL = formURL;
    if ($("#btn_dialog_open").length > 0) {
        $("#btn_dialog_open").click();
        return;
    }
}